package com.greatwqs.wmall.user.provider.mapper;

import com.greatwqs.wmall.user.provider.model.po.UserLogin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by MyBatis Generator 2025/04/01
 * https://github.com/greatwqs/mybatis-generator-plugin
 */
@Mapper
public interface UserLoginMapper {

    int deleteByLoginToken(String loginToken);

    int insert(UserLogin record);

    UserLogin selectByLoginToken(String loginToken);

    List<UserLogin> selectByUserId(Long userId);

    List<UserLogin> selectListExpired(int limitCount);

    int updateExpireTimeByLoginToken(UserLogin record);
}